cmake_minimum_required(VERSION 3.7.2)
project(binder_user)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 90)

include_directories(include)

add_library(binder include/binder.h source/binder.c include/uapi_binder.h)
add_library(binder_cpp include/binder_cpp.h source/binder_cpp.cpp)

add_executable(svcmgr source/svcmgr.cpp)
add_executable(test_server example/test_server.c example/test_server.h)
add_executable(test_client example/test_client.c)

target_link_libraries(svcmgr binder_cpp binder)
target_link_libraries(test_server binder)
target_link_libraries(test_client binder)
